﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008E7 RID: 2279
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeliobusEnterBattleCsReq : IMessage<HeliobusEnterBattleCsReq>, IMessage, IEquatable<HeliobusEnterBattleCsReq>, IDeepCloneable<HeliobusEnterBattleCsReq>, IBufferMessage
	{
		// Token: 0x17001CD4 RID: 7380
		// (get) Token: 0x0600661C RID: 26140 RVA: 0x001124C9 File Offset: 0x001106C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeliobusEnterBattleCsReq> Parser
		{
			get
			{
				return HeliobusEnterBattleCsReq._parser;
			}
		}

		// Token: 0x17001CD5 RID: 7381
		// (get) Token: 0x0600661D RID: 26141 RVA: 0x001124D0 File Offset: 0x001106D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeliobusEnterBattleCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001CD6 RID: 7382
		// (get) Token: 0x0600661E RID: 26142 RVA: 0x001124E2 File Offset: 0x001106E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeliobusEnterBattleCsReq.Descriptor;
			}
		}

		// Token: 0x0600661F RID: 26143 RVA: 0x001124E9 File Offset: 0x001106E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleCsReq()
		{
		}

		// Token: 0x06006620 RID: 26144 RVA: 0x001124FC File Offset: 0x001106FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleCsReq(HeliobusEnterBattleCsReq other) : this()
		{
			this.avatarIdList_ = other.avatarIdList_.Clone();
			this.eventId_ = other.eventId_;
			this.skillId_ = other.skillId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006621 RID: 26145 RVA: 0x00112549 File Offset: 0x00110749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeliobusEnterBattleCsReq Clone()
		{
			return new HeliobusEnterBattleCsReq(this);
		}

		// Token: 0x17001CD7 RID: 7383
		// (get) Token: 0x06006622 RID: 26146 RVA: 0x00112551 File Offset: 0x00110751
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AvatarIdList
		{
			get
			{
				return this.avatarIdList_;
			}
		}

		// Token: 0x17001CD8 RID: 7384
		// (get) Token: 0x06006623 RID: 26147 RVA: 0x00112559 File Offset: 0x00110759
		// (set) Token: 0x06006624 RID: 26148 RVA: 0x00112561 File Offset: 0x00110761
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17001CD9 RID: 7385
		// (get) Token: 0x06006625 RID: 26149 RVA: 0x0011256A File Offset: 0x0011076A
		// (set) Token: 0x06006626 RID: 26150 RVA: 0x00112572 File Offset: 0x00110772
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillId
		{
			get
			{
				return this.skillId_;
			}
			set
			{
				this.skillId_ = value;
			}
		}

		// Token: 0x06006627 RID: 26151 RVA: 0x0011257B File Offset: 0x0011077B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeliobusEnterBattleCsReq);
		}

		// Token: 0x06006628 RID: 26152 RVA: 0x0011258C File Offset: 0x0011078C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeliobusEnterBattleCsReq other)
		{
			return other != null && (other == this || (this.avatarIdList_.Equals(other.avatarIdList_) && this.EventId == other.EventId && this.SkillId == other.SkillId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006629 RID: 26153 RVA: 0x001125EC File Offset: 0x001107EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.avatarIdList_.GetHashCode();
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this.SkillId != 0U)
			{
				num ^= this.SkillId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600662A RID: 26154 RVA: 0x00112652 File Offset: 0x00110852
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600662B RID: 26155 RVA: 0x0011265A File Offset: 0x0011085A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600662C RID: 26156 RVA: 0x00112664 File Offset: 0x00110864
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.avatarIdList_.WriteTo(ref output, HeliobusEnterBattleCsReq._repeated_avatarIdList_codec);
			if (this.EventId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.EventId);
			}
			if (this.SkillId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.SkillId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600662D RID: 26157 RVA: 0x001126D0 File Offset: 0x001108D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.avatarIdList_.CalculateSize(HeliobusEnterBattleCsReq._repeated_avatarIdList_codec);
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this.SkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600662E RID: 26158 RVA: 0x0011273C File Offset: 0x0011093C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeliobusEnterBattleCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.avatarIdList_.Add(other.avatarIdList_);
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			if (other.SkillId != 0U)
			{
				this.SkillId = other.SkillId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600662F RID: 26159 RVA: 0x0011279D File Offset: 0x0011099D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006630 RID: 26160 RVA: 0x001127A8 File Offset: 0x001109A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 40U || num == 42U)
					{
						this.avatarIdList_.AddEntriesFrom(ref input, HeliobusEnterBattleCsReq._repeated_avatarIdList_codec);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.EventId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.SkillId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002710 RID: 10000
		private static readonly MessageParser<HeliobusEnterBattleCsReq> _parser = new MessageParser<HeliobusEnterBattleCsReq>(() => new HeliobusEnterBattleCsReq());

		// Token: 0x04002711 RID: 10001
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002712 RID: 10002
		public const int AvatarIdListFieldNumber = 5;

		// Token: 0x04002713 RID: 10003
		private static readonly FieldCodec<uint> _repeated_avatarIdList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x04002714 RID: 10004
		private readonly RepeatedField<uint> avatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04002715 RID: 10005
		public const int EventIdFieldNumber = 8;

		// Token: 0x04002716 RID: 10006
		private uint eventId_;

		// Token: 0x04002717 RID: 10007
		public const int SkillIdFieldNumber = 13;

		// Token: 0x04002718 RID: 10008
		private uint skillId_;
	}
}
